package jrdcom.com.jrdmovie.Glide;

import android.content.Context;
import android.widget.ImageView;

/**
 * Created by longcheng on 17/3/8.
 */
public class JrdImageLoaderProxy  implements IimageLoader{
    private JrdImageLoader jrdImageLoader;
    private static JrdImageLoaderProxy jrdImageLoaderProxy;
    public  static JrdImageLoaderProxy getInstance(){
        if(jrdImageLoaderProxy == null){
            jrdImageLoaderProxy = new JrdImageLoaderProxy();
        }
        return jrdImageLoaderProxy;
    }

    public JrdImageLoaderProxy(){
        jrdImageLoader =  new JrdImageLoader();
    }

    @Override
    public void init() {

    }

    @Override
    public void displayImage(String imageUri, ImageView imageView, Context mContext) {
        jrdImageLoader.displayImage(imageUri, imageView,mContext);
    }

    @Override
    public void displayImage(String imageUri, ImageView imageView, int errorImage, int loadImage, Context mContext) {
        jrdImageLoader.displayImage(imageUri, imageView, errorImage, loadImage, mContext);
    }

    @Override
    public void displayImage(String imageUri, ImageView imageView, int errorImage, int loadImage, Context mContext, boolean isBitmap) {
        jrdImageLoader.displayImage(imageUri, imageView, errorImage, loadImage, mContext, isBitmap);

    }
}
